<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<input type="button" value="按钮" onclick="f1()">


<script>
    function f1(){
        console.log("f1执行了");
    }
    f1();

    function f2(name, age){
        console.log(name + ":" + age);
    }

    f2("孙尚香", 50);

    function f3(){
        return "我是返回值";

    }

    console.log(f3());

    function f4(x, y){
        return x * y;
    }

    console.log(f4(8,9));


    let f5 = function (name, age){
        console.log(name + ":" + age);
    }

    f5("刘备", 20);
    let f6 = new Function("name", "age", "console.log(name+ ':' + age)");
    f6("吕布",66);



</script>
</body>
</html>